package com.cy.springcloudalibaba.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Description: 账户
 * @ClassName: FeignAccountService
 * @Author: chenyu
 * @Date: 2025/2/6 13:53
 */
@FeignClient(name = "09-seata-distributed-account-service")
public interface FeignAccountService {
    @PostMapping("/account/reduceBalance")
    void reduceBalance(@RequestParam("userId") Integer userId, @RequestParam("price") BigDecimal price);
}
